package bean.factory.xml;

import java.util.Objects;

/**
 * @Author com.alibaba.lizhen
 * @Date 2021/4/8 9:11 下午
 * @Version 1.0
 * @Description
 */
public class MyBean {
	private int age;
	private String name;

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "MyBean{" +
				"age=" + age +
				", name='" + name + '\'' +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		MyBean myBean = (MyBean) o;
		return age == myBean.age &&
				Objects.equals(name, myBean.name);
	}

	@Override
	public int hashCode() {
		return Objects.hash(age, name);
	}
}
